package com.heima.mpdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("users")
public class Users {

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long userId;

    @TableField("name")
    private String username;

    private Integer age;

    private String email;

    public Users(Long userId, String username, Integer age, String email){
        this.userId = userId;
        this.username = username;
        this.age = age;
        this.email = email;
    }


}

